<%
layout("/inc/layout.html",{
title:'残联补办 - 残联补办申请 - 智慧洛龙',
keywords:'残联补办,残联补办申请,智慧洛龙',
description:'残联补办,残联补办申请,智慧洛龙',
style:'index.css'
}){
%>
<section class="container">
	<div class="row mt15 text-left">  
	    <ul class="breadcrumb">
	    	<li>当前位置：</li>
			<li><a href="/">主页</a></li>
	        <li><a href="/list/2">法人办事</a></li>
	        <li>残联申请</li>
	    </ul>
    </div>
</section>
<section class="container">
	<div class="row">
		<div class="panel panel-info">
			<div class="panel-heading text-left">
				<ul class="nav nav-tabs">
					<li><a href="/disabilityApply/base"><b>残联申请</b></a></li>
					<li><a href="/disabilityChange/base"><b>残联变更</b></a></li>
					<li class="active"><a href="/disabilityReapply/reapply"><b>残联补办</b></a></li>
					<li><a href="/disabilityCancel/cancel"><b>残联注销</b></a></li>
				</ul>
			</div>
			<div class="panel-body">
				<legend>
					<span class="text text-danger" id="messageCode">残联补办信息</span>
				</legend>
				<form class="form-horizontal" id="disabilityInfo">
					<input id="applyId" type="hidden" name="applyId" value="${reApply.applyId!}" >
					 <div class="form-group">
                        <label for="cardUploader" class="col-sm-2 control-label">姓名：</label>
                        <div class="col-sm-2" id="companyLicense-box">
                            <input type="text" class="form-control" id="name" name="name" readonly="readonly" value="${reApply.name!}">
                            <b class="text text-danger" id="companyLicense-error"></b>
                        </div>
                     </div>
                        
                        
                                                
				  		<div class="form-group">
						    <label class="col-sm-2 control-label">二寸图片:</label>
						    <div class="col-sm-4" id="cardFrontPicture-box">
                            <input type="file" class="form-control" id="userPhotoUploader" name="files" data-max-file-count="5" multiple="multiple">
                            <input type="hidden" name="checkUserPhoto"  id="checkUserPhoto" value="${reApply.userPhoto!}">
                            <b class="text text-danger" id="userPhoto-error"></b>
                             <hr></hr>
                            <span class="test-block" id="userPhoto-upload-error"></span>
                            		   <div id="userPhoto-upload-success" >
                            <%
                                if(isNotEmpty(reApply.userPhoto)){
                                 %>
                                <div>
                                    <div class="thumbnail uploadImageShow" >
                                        <input type="hidden" name="userPhoto" value="${reApply.userPhoto!}">
                                        <a href="${uploaderFilesDomain!}${userPhoto!}" target="_blank">
                                            <img src="${uploaderFilesDomain!}${userPhoto!}" >
                                        </a>
                                         <div class="btn btn-block btn-danger deletetCover" onclick="$(this).parent().parent().remove();">删除</div>
                                    </div>
                                </div>
                                <%
                                 }
                                %>
                            </div>
                        </div>
                     </div>
                     
				  <div class="form-group">
                        <label for="cardUploader" class="col-sm-2 control-label">报纸照片：</label>
                        <div class="col-sm-8" id="companyLicense-box">
                            <input type="file" class="form-control" id="newsPhotoUploader" name="files" data-max-file-count="5" multiple="multiple">
                           <input type="hidden" name="checkNewsPhoto"  id="checkNewsPhoto">
                            <b class="text text-danger" id="companyLicense-error"></b>
                             <hr></hr>
                            <span class="newsPhoto-block" id="newsPhoto-upload-error"></span>
                            <span class="newsPhoto-block row" id="newsPhoto-upload-success">
                                <%
                                if(isNotEmpty(reApply.newsPhotosList)){
                                  for(newsPhotopic in reApply.newsPhotosList){
                                 %>
                                <div class="col-xs-10 col-sm-5 col-md-3 mb10">
                                    <div class="thumbnail uploadImageShow">
                                      <input type="hidden" name="checkNewsPhoto"  id="checkNewsPhoto" value="1">
                                        <input type="hidden" name="newsPhotosList" value="${newsPhotopic!}">
                                        <a href="${uploaderFilesDomain!}${newsPhotopic!}" target="_blank">
                                            <img src="${uploaderFilesDomain!}${newsPhotopic!}">
                                        </a>
                                        <div class="btn btn-block btn-danger deletetCover" onclick="$(this).parent().parent().remove();">删除</div>
                                    </div>
                                </div>
                                <%
                                }
                                 }
                                %>
                            </span>
                        </div>
                       </div>

                        
				</form>
			</div>
			
			<div class="panel-footer" >
			<div class="col-sm-offset-5 clearfix">
						<div class="mt5 mb5 block col-sm-3">
							<button id="doSubmit" id="submitAgent"
								class="btn btn-success btn-lg btn-outline btn-block">提交</button>
						</div>
					</div>
			</div>
		</div>
	</div>
</section>
<% } %>
<script>
    require(['modules/disability_apply'], function (apply) {
        apply.reApply();
    });
</script>
</body>
</html>
